package com.test.order;

import com.tzy.spi.annotation.Inject;

public class WeChatOrder implements Order{

    private Order order;
    @Override
    public void todo() {
        System.out.println(order.get()+"  自注入");
    }

    @Override
    public String get() {
        return "wechat";
    }


    @Inject("wechat")
    public void setOrder(Order order) {
        this.order = order;
    }
}
